<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>&&运算</title>
    <script type="text/javascript">
        var money = 1000;
        var year = 0;
        while(money<=5000){
            year++;
            money*=1.05;
        }
        document.write(year);
    </script>
</head>
<body>
</body>
</html>